#ifndef ASTAR_H
#define ASTAR_H
#include <QVector>

#include<vector>

using namespace std;
class Node2D {
public:
    int x;
    int y;
    float g;
    float h;
    float f;
    int idx;
    int preidx;
};
   // bool Astar(QVector<QVector<int>> map, int startx, int starty, int endx, int endy, vector<int> &pathx, vector<int> &pathy,vector<int> &stepx, vector<int> &stepy);
    bool Astar(QVector<QVector<int>> , int , int , int, int , vector<int> &, vector<int> &);

    Node2D popNode2D(std::vector<Node2D> &O);


#endif // ASTAR_H
